package org.jeecg.modules.flower.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 出库单主表
 * @Author: jeecg-boot
 * @Date:   2022-06-27
 * @Version: V1.0
 */
@ApiModel(value="t_flower_outorder对象", description="出库单主表")
@Data
@TableName("t_flower_outorder")
public class FlowerOutorder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**订单号*/
	@Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private String orderNo;

	/**出库数量*/
	@Excel(name = "出库数量", width = 15)
    @ApiModelProperty(value = "出库数量")
    private BigDecimal number;
	/**出库数量*/
	@Excel(name = "总金额", width = 15)
    @ApiModelProperty(value = "总金额")
    private BigDecimal totalprice;
	/**出库时间*/
	@Excel(name = "出库时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "出库时间")
    private Date stockInTime;
	/**出库人*/
	@Excel(name = "出库人", width = 15)
    @ApiModelProperty(value = "出库人")
    private String stockOutUser;
	/**出库人id*/
	@Excel(name = "出库人id", width = 15)
    @ApiModelProperty(value = "出库人id")
    private String stockOutUserid;
	/**车牌*/
	@Excel(name = "车牌", width = 15)
    @ApiModelProperty(value = "车牌")
    private String carNo;
	/**司机*/
	@Excel(name = "司机", width = 15)
    @ApiModelProperty(value = "司机")
    private String carDerver;
	/**司机电话*/
	@Excel(name = "司机电话", width = 15)
    @ApiModelProperty(value = "司机电话")
    private String carPhone;
	/**渠道类型（先款后货，先货后款）*/
	@Excel(name = "渠道类型（先款后货，先货后款）", width = 15)
    @ApiModelProperty(value = "渠道类型（先款后货，先货后款）")
    private String type;

    /**'客户id'*/
    @ApiModelProperty(value = "客户id")
    private String userid;
    /**'客户名称'*/
    @Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String user;
    /**'联系电话'*/
    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String phone;    /**'联系电话'*/

    /**'客户余额'*/
    @ApiModelProperty(value = "客户余额")
    private String customMoney;

    @Excel(name = "收件人", width = 15)
    @ApiModelProperty(value = "收件人")
    private String touser;
    @Excel(name = "收件电话", width = 15)
    @ApiModelProperty(value = "收件电话")
    private String tophone;

    @Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private String address;

    @Excel(name = "物流信息", width = 15)
    @ApiModelProperty(value = "物流信息")
    private String logistics;

    @Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "业务员")
    private String businessPerson;


    @Excel(name = "来源", width = 15)
    @ApiModelProperty(value = "来源")
    private String source;

    @Excel(name = "销售单号", width = 15)
    @ApiModelProperty(value = "销售单号")
    private String sealNo;
    /**订单类型：0：采后系统订单，1：销售系统门户订单，2：销售系统后台订单*/
//    @Excel(name = "订单类型：0：采后系统订单，1：销售系统门户订单，2：销售系统后台订单", width = 15)
    @ApiModelProperty(value = "订单类型：0：采后系统订单，1：销售系统门户订单，2：销售系统后台订单")
    private Integer orderType;

    @Excel(name = "是否需要开票", width = 15)
    @ApiModelProperty(value = "是否需要开票")
    private String isinvoice;

    @Excel(name = "基地负责人审核", width = 15  )
    @ApiModelProperty(value = "基地负责人审核")
    private String finaSureUser;

    @TableField( updateStrategy = FieldStrategy.IGNORED)
    @Excel(name = "基地负责人审核日期", width = 15, format = "yyyy-MM-dd HH:mm:ss"  )
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "基地负责人审核日期")
    private Date finaSureTime;


    @TableField( updateStrategy = FieldStrategy.IGNORED)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "提交审核时间")
    private Date topresstime;

	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remarks;


    @Excel(name = "账期号", width = 15    )
    @ApiModelProperty(value = "账期号")
    private String period;

    @Excel(name = "账期状态", width = 15  )
    @ApiModelProperty(value = "账期状态")
    private String periodState;


    @Excel(name = "状态", width = 17 , dicCode = "ch_outorderState"   )
    @ApiModelProperty(value = " 状态（-2删除 -1草稿，0库管已确认出库，1基地负责人审核，2运管备案，3待审核，4结算确认） -1——》3——》1——》2——》0->4 ")
    private Integer state;

    @ApiModelProperty(value = "库管确认出库人")
    private String sureoutuser;

    @TableField( updateStrategy = FieldStrategy.IGNORED )
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "库管确认出库时间")
    private Date sureouttime;

    @ApiModelProperty(value = "运管备案")
    private String surepipeuser;

    @TableField( updateStrategy = FieldStrategy.IGNORED )
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "运管备案时间")
    private Date surepipetime;

    @ApiModelProperty(value = "结算确认")
    private String accounter;

    @TableField( updateStrategy = FieldStrategy.IGNORED )
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结算确认时间")
    private Date accounttime;


	/**创建日期*/
    @Excel(name = "创建日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

	/**创建人*/
    @Excel(name = "创建人", width = 15,  dictTable = "sys_user",dicText = "realname",dicCode = "username" ,needMerge = true )
    @Dict( dictTable = "sys_user",dicText = "realname",dicCode = "username")
    @ApiModelProperty(value = "创建人")
    private String createBy;

	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

}
